#include "mysig.h"
#include <pthread.h>


void (*signal2(int, void (*)(int))) (int);
static void my_handler(int);



int main() {
    int i;
    printf("0: %s\n", NULL);
    printf("0: %s\n", sys_siglist[255]);
    return 0;
}

static void my_handler(int sig) {
    printf("Recv sig: %d\n", sig);
    printf("handler process id: %d\n", getpid());
    printf("handler thread  id: %d\n", (int)pthread_self());
}
